/* 公共服务页面特定样式 */

/* 中部内容区域 */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    background-image: url("../assets/bg-top-red.png"), url("../assets/bg-bottom-red.png");
    background-position: left top, right bottom;
    /* 分别控制位置 */
    background-repeat: no-repeat, repeat-x;
    /* 分别控制重复方式 */
    background-size: auto, auto;
}

.content-container .bar {
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.4)
}

.content-wrapper {
    width: 68%;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
}

/* 左侧树形菜单 */
.tree-container {
    width: 250px;
    background-color: #fff;
    padding: 0px;
}

.tree-menu {
    list-style: none;
}

.tree-item {
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #555555;
    transition: all 0.3s;
    background-color: #F1F1F1;
}

/* 公众服务节点特殊样式 */
.tree-item[data-tree="public-service"] {
    background-color: #BD1A2D;
    color: white;
}

.tree-item:hover[data-tree="public-service"] {
    background-color: #BD1A2D;
    color: #fff;
}

.tree-item .tree-arrow {
    font-size: 12px;
    color: #555555;
}

.tree-item:hover {
    color: #BD1A2D;
}

.tree-item:hover .tree-arrow {
    color: #BD1A2D;

}

.tree-item.selected {
    color: #BD1A2D;
}

.tree-text {
    flex-grow: 1;
}

.tree-arrow {
    /* 移除动画效果 */
}

/* 右侧列表区域 */
.list-container {
    flex-grow: 1;
    padding: 20px;
    padding-top: 10px;
    margin-left: 20px;
    ;
    background-color: #fff;
}

.list-header h2 {
    margin-bottom: 20px;
    color: #333;
}

#current-menu {
    height: 32px;
    border-bottom: 1px solid #F1F1F1;
}

#current-menu .title {
    width: fit-content;
    height: 30px;
    line-height: 30px;

}

#current-menu .title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #BD1A2D;
}

.list-content {
    margin-top: 10px;
}

.list-content ul {
    list-style: none;
}

.list-content li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* 查档指南内容样式 */
.guide-container {
    padding: 30px;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.guide-content {
    margin-bottom: 30px;
}

.guide-content h3 {
    color: #D61618;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #D61618;
    text-align: center;
}

.guide-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    text-align: justify;
}

.guide-content h4 {
    color: #333;
    font-size: 20px;
    margin: 25px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #D61618;
    font-weight: bold;
}

.guide-content ol {
    margin: 15px 0 15px 30px;
}

.guide-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 10px;
}

.guide-content ul {
    margin: 15px 0 15px 30px;
    list-style-type: disc;
}

.guide-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.guide-note {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #D61618;
    margin: 25px 0;
    border-radius: 0 5px 5px 0;
}

.guide-note h4 {
    color: #D61618;
    font-size: 18px;
    margin-bottom: 10px;
    border-left: none;
    padding-left: 0;
}

/* 查档指南中的特殊样式 */
#guide-content-inquiry {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-content li span:first-child {
    margin-right: 10px;
    width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #5B503A;
    font-size: 16px;
}

.list-content li span:first-child:hover {
    color: #D61618;
}

.list-content li span:first-child::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #B9B9B9;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}


.list-content li span:last-child {
    white-space: nowrap;
    color: #7f7f7f;
    font-size: 14px;
}

.list-content li:hover {
    background-color: #f9f9f9;
}

.list-content-container {
    margin-top: 20px;
    width: 100%;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #333;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

/* 列表项样式 */
.list-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.list-item:hover {
    background-color: #f9f9f9;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.item-type {
    padding: 4px 8px;
    background-color: #e8f4fd;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 12px;
}

.item-period {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.item-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* 右侧列表区域 */
.list-container {
    flex-grow: 1;
    padding: 20px;
    padding-top: 10px;
    margin-left: 20px;
    background-color: #fff;
}

.list-header h2 {
    margin-bottom: 20px;
    color: #333;
}

#current-menu {
    height: 32px;
    border-bottom: 1px solid #F1F1F1;
}

#current-menu .title {
    width: fit-content;
    height: 30px;
    line-height: 30px;
}

#current-menu .title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #BD1A2D;
}

/* 检索框样式 */
.search-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#search-type {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#search-input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#search-btn {
    padding: 8px 20px;
    background-color: #BD1A2D;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background-color: #cc0000;
}

/* 列表内容样式 */
.list-content {
    margin-top: 10px;
}

/* 表格样式 */
#data-table {
    width: 100%;
    border-collapse: collapse;
}

#data-table th {
    background-color: #D6B886;
    color: #4A4A4A;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #ddd;
}

#data-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

/* 边框条纹效果 */
#data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#data-table tbody tr:hover {
    background-color: #f1f1f1;
}

#data-table td:first-child {
    color: #5B503A;
    font-size: 14px;
    cursor: pointer;
}

#data-table td:first-child:hover {
    color: #D61618;
}

/* 操作按钮样式 */
.view-btn {
    padding: 5px 15px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    border: 1px solid #D61618;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: #d62828;
    color: #fff;
}

.pagination-select {
    width: 70px;
}

.custom-select-search {
    width: 100px;
}


/* 分页样式 */
.pagination,
.pagination-donation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination button {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    color: #666;
    transition: background-color 0.3s;
}

.pagination-donation button {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    color: #666;
    transition: background-color 0.3s;
}

.pagination-donation .page-item {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    color: #666;
    margin-right: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.pagination .page-item {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    color: #666;
    margin-right: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.pagination .page-item:hover {
    color: #D61618;
    border-color: #D61618;
    background-color: #fff;
}

.pagination-donation .page-item:hover {
    color: #D61618;
    border-color: #D61618;
    background-color: #fff;
}

.pagination .slide {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}
.pagination-donation .slide {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.pagination button:hover {
    background-color: #fff;
    color: #D61618;
}


.pagination-donation button:hover {
    background-color: #fff;
    color: #D61618;
}

.pagination button:disabled {
    background-color: #f9f9f9;
    cursor: not-allowed;
}


.pagination-donation button:disabled {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.custom-select {
    position: relative;
    display: inline-block;
}
.item-donor {
    width: 100%;
    display: flex;
    justify-content: space-between;
}


.custom-select select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.custom-select .arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    pointer-events: none;
}



#page-input {
    width: 80px;
    padding: 7px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 4px;
}

#page-input-donation {
    width: 80px;
    padding: 7px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 4px;
}

#page-size {
    width: 70px;
    height: 32px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#page-size-donation {
    width: 70px;
    height: 32px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 表单样式 */
.consultation-message,
.watch-reservation {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

#consultation-form,
#reservation-form {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
    color: #5B503A;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: calc(100% - 110px);
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group img {
    margin-left: 10px;
    cursor: pointer;
    vertical-align: middle;
}

.form-buttons {
    text-align: center;
    margin-top: 20px;
}

.form-buttons button {
    padding: 8px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.form-buttons button[type="submit"] {
    background-color: #BD1A2D;
    color: white;
}

.form-buttons button[type="submit"]:hover {
    background-color: #cc0000;
}

.form-buttons button[type="reset"] {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}

.form-buttons button[type="reset"]:hover {
    background-color: #e0e0e0;
}

/* 下方信息页样式已移至common.css */